#include <stdlib.h>
#include <stdio.h>
#include "neuralnetwork.h"
#include <time.h>

int main(int argc, char *argv) {

	int nrIterations	= 20000;
	int layerCount		= 1;
	int neuronCount		= 9;
	int classCount		= 3;
	int attributeCount	= 4;

	srand(time(NULL));
	NeuralNetwork network = NeuralNetwork(layerCount,neuronCount,classCount,attributeCount,nrIterations);
	network.readInput("iris.data");
	network.normalize();
	network.splitData();
	for (int i = 0; i < nrIterations; i++) {
		network.trainNetwork();
	}
	network.testNetwork();
	network.writer.printResultData();

	return 0;
}


